package zust.javaee.service;

import org.omg.CORBA.TCKind;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import zust.javaee.dto.corporation.CorporIndexNumDto;
import zust.javaee.entity.Tcorporation;

import java.util.List;

/**
 * Created by liy on 2017/1/4.
 */
@Service
@Transactional
public interface CorporationService extends BaseService<Tcorporation>  {





    List<CorporIndexNumDto> getAllCorporationDto(Integer playerId, Integer num, Short status);

    boolean checkMemberExit(Integer playerId, Integer corporId);
    boolean checkOnRequestion(Integer playerId, Integer corporId);


    /**
     * trans
     * @param tcorporation
     * @return
     */
    CorporIndexNumDto transToCorporIndexDto(Tcorporation tcorporation);
    List<CorporIndexNumDto> transToCorporIndexDtos(List<Tcorporation> tcorporations);
    List<CorporIndexNumDto> transToCorporIndexDtos(Integer playerId, List<Tcorporation> tcorporations);

    /**
     * 获取不同状态的社团
     * @return
     */
    List<Tcorporation> getAllCorporation();
    List<Tcorporation> getAllCorporation(Short status);
    List<Tcorporation> getAllCorporation(Integer num, Short status);

}
